<template>
  <div>
    <el-button type="primary" plain>编辑</el-button>
    <el-table
        ref="table"
        @select="onSelectChange"
        :data="tableData" style="width: 100%"
    >
      <el-table-column label="序号" type="index" width="180"></el-table-column>
      <el-table-column prop="projectName" label="工程名称" width="180" />
      <el-table-column prop="projectCode" label="工程编码" width="180" />
      <el-table-column prop="projectType" label="工程类型" />
      <el-table-column label="操作">
        <template #default="scope">
          <el-button link type="primary" size="small" @click="handleDetail(scope.row)">编辑</el-button>
          <el-button link type="danger" size="small">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination
        layout="prev, pager, next"
        @current-change="handleTableChange"
        :total="total">
    </el-pagination>

    <!-- <zxtable-modal ref="modalForm"></zxtable-modal> -->
    <OrgEdit ref="modalForm"></OrgEdit>

  </div>
</template>

<script>
import { ZxListMixin } from '@/utils/mixins/ZxListMixin'
import ZxtableModal from "@/components/demo/ZxtableModal";
import OrgEdit from "./OrgEdit"
export default {
  name: "OrgTable",
  mixins: [ZxListMixin],
  components: { 
    ZxtableModal,
    OrgEdit,
   },
  data() {
    return {
      tableData: [
        {
          projectName:'中交二航局',
          projectCode:"ehj1",
          projectType:"公司",
        },
        {
          projectName:'五公司',
          projectCode:"ehj5",
          projectType:"分子公司",
        },
        {
          projectName:'常泰大桥',
          projectCode:"ct",
          projectType:"项目部",
        },
        {
          projectName:'深中通道',
          projectCode:"sztd",
          projectType:"项目部",
        },
        {
          projectName:'巢马大桥',
          projectCode:"cm",
          projectType:"项目部",
        },
      ],
      queryParam: {
        name: '',
        region: '',
        dateValue:'',
        value2: '',
        pageSize: 15
      },
      title: '',

      url: {
        list: '/dashboard/projectInfo'
      }

    }
  },
  created() {

  },
  mounted() {

  },
  methods: {

    txt(){
      console.log(11111)
    }
  }
}
</script>

<style scoped>

</style>